@import '../../assets/scss/var.scss';

/* 弹出框 */
.popup {
  width: 100%;
  height: 100%;
  font-size: 14px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 89;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: top .6s;
  &.show {
    visibility: visible;
    opacity: 1;
    filter: alpha(opacity=100);
  }
  &.hide {
    visibility: hidden;
    opacity: 0;
    filter: alpha(opacity=0);
  }
  // 遮罩层
  .maskLyer {
    width: 100%;
    height: 100%;
    background: rgba($color: #000000, $alpha: .75);
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
  }
  // 弹出盒子
  .popupBox{
    width: 500px;
    background-color: #fff;
    border-radius: 5px;
    .titleBox {
      height: 40px;
      line-height: 40px;
      padding: 0 15px;
      font-size: 16px;
      font-weight: 900;
      border-bottom: 1px solid $theme6;
      display: flex;
      align-items: center;
      justify-content: space-between;
      &.danger {
        box-shadow: 0px 0px 5px $danger;
        -moz-box-shadow: 0px 0px 5px $danger;
        -webkit-box-shadow: 0px 0px 5px $danger;
      }
      &.info {
        border: 1px solid $info;
        box-shadow: 0px 0px 5px $info;
        -moz-box-shadow: 0px 0px 5px $info;
        -webkit-box-shadow: 0px 0px 5px $info;
      }
      &.success {
        border: 1px solid $success;
        box-shadow: 0px 0px 5px $success;
        -moz-box-shadow: 0px 0px 5px $success;
        -webkit-box-shadow: 0px 0px 5px $success;
      }
      .message {
        margin-right: 10px;
      }
      .btn {
        color: $gray;
        cursor: pointer;
        &:hover {
          color: #858585;
        }
      }
    }
    .contentBox {
      padding: 10px;
    }
  }
}